package com.ctshk.rpc.booking.req.outside.hotel.save;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 站外酒店房型信息
 * </p>
 *
 * @author 谢诗宏
 * @since 2021-03-09
 */
@Data


@ApiModel(value="SupplierOutsideOrderHotelRoomReq对象", description="站外酒店房型信息")
public class SupplierOutsideOrderHotelRoomReq implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    private Long id;

    @ApiModelProperty(value = "所属入住信息ID")
    private Long checkInId;

    @ApiModelProperty(value = "订单ID")
    private Long orderId;

    @NotBlank(message = "房间类型不能为空")
    @ApiModelProperty(value = "房间类型主数据")
    private String roomTypeJson;

    @NotNull(message = "游客数量不能为空")
    @ApiModelProperty(value = "游客数量")
    private Integer touristNum;

    @NotNull(message = "房间数不能为空")
    @ApiModelProperty(value = "房间数")
    private Integer roomNum;

    @NotNull(message = "房价不能为空")
    @ApiModelProperty(value = "房价")
    private BigDecimal roomPrice;

    @NotNull(message = "加床数不能为空")
    @ApiModelProperty(value = "加床数")
    private Integer additionBedNum;

    @NotNull(message = "加床价不能为空")
    @ApiModelProperty(value = "加床价")
    private BigDecimal additionBedPrice;

    @NotNull(message = "导领数不能为空")
    @ApiModelProperty(value = "导领数")
    private Integer guiderNum;

    @NotNull(message = "总金额不能为空")
    @ApiModelProperty(value = "总金额")
    private BigDecimal totalPrice;

    @Valid
    @NotEmpty(message = "酒店旅客列表不能为空")
    @ApiModelProperty(value = "酒店旅客列表")
    private List<SupplierOutsideOrderHotelTouristReq> supplierOutsideOrderHotelTouristReqList;

}
